package com.syni.mdd.sjb.marketing.basemarket.service;

import com.syni.mdd.sjb.common.component.utils.common.utils.ResultMapHelper;
import com.syni.mdd.sjb.marketing.basemarket.entity.vo.responseVo.marketIndex.AllRpVo;
import com.syni.mdd.sjb.marketing.basemarket.service.commom.CommonService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@Log4j2
public class MarketIndexService {

    @Autowired
    CommonService commonService;

    public Map<String, Object> all(Integer pageNum,Integer pageSize,String accountId) {
        AllRpVo allRpVo = new AllRpVo();
        if(commonService.isApiFakeDataStatus()){
            allRpVo = allRpVo.initFakeData();
            return ResultMapHelper.success(allRpVo);
        }
        return ResultMapHelper.success(allRpVo);
    }
}
